import request from '@/utils/request'

// 查询消息推送列表
export function listPush(query) {
  return request({
    url: '/biz/push/list',
    method: 'get',
    params: query
  })
}

// 查询消息推送详细
export function getPush(id) {
  return request({
    url: '/biz/push/' + id,
    method: 'get'
  })
}

// 新增消息推送
export function addPush(data) {
  return request({
    url: '/biz/push',
    method: 'post',
    data: data
  })
}

// 修改消息推送
export function updatePush(data) {
  return request({
    url: '/biz/push',
    method: 'put',
    data: data
  })
}

// 删除消息推送
export function delPush(id) {
  return request({
    url: '/biz/push/' + id,
    method: 'delete'
  })
}

// 导出消息推送
export function exportPush(query) {
  return request({
    url: '/biz/push/export',
    method: 'get',
    params: query
  })
}